<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>embedme: libemb/inc/BaseType.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">embedme
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.8 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>文件成员</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_574d9269cd334a9d02d8928365303d98.html">libemb</a></li><li class="navelem"><a class="el" href="dir_207aad82934689048a9003fb51f06f7f.html">inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#typedef-members">类型定义</a> &#124;
<a href="#enum-members">枚举</a>  </div>
  <div class="headertitle">
<div class="title">BaseType.h 文件参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="_base_type_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:a70c57aae3eb654e205459b4362c8089a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_base_type_8h.html#a70c57aae3eb654e205459b4362c8089a">ARRAY_SIZE</a>(array)&#160;&#160;&#160;(sizeof(array)/sizeof(array[0]))</td></tr>
<tr class="separator:a70c57aae3eb654e205459b4362c8089a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76e74e5534d139b2b72763f7230abdbc"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_base_type_8h.html#a76e74e5534d139b2b72763f7230abdbc">IS_DIGITAL</a>(ch)&#160;&#160;&#160;((((ch)&gt;='0')&amp;&amp;((ch)&lt;='9'))?true:false)</td></tr>
<tr class="separator:a76e74e5534d139b2b72763f7230abdbc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dac81d72cfe90b7da010b9becf62606"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_base_type_8h.html#a6dac81d72cfe90b7da010b9becf62606">IS_HEXDIG</a>(ch)&#160;&#160;&#160;(((((ch)&gt;='0')&amp;&amp;((ch)&lt;='9'))||(((ch)&gt;='A')&amp;&amp;((ch)&lt;='F'))||(((ch)&gt;='a')&amp;&amp;((ch)&lt;='f')))?true:false)</td></tr>
<tr class="separator:a6dac81d72cfe90b7da010b9becf62606"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef7ed709c11221c220a4637d8ed946e3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_base_type_8h.html#aef7ed709c11221c220a4637d8ed946e3">IS_CAPITAL</a>(ch)&#160;&#160;&#160;((((ch)&gt;='A')&amp;&amp;((ch)&lt;='Z'))?true:false)</td></tr>
<tr class="separator:aef7ed709c11221c220a4637d8ed946e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af84cf65fa3abd8d70b242252eb2f76b9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_base_type_8h.html#af84cf65fa3abd8d70b242252eb2f76b9">IS_ALPHABET</a>(ch)&#160;&#160;&#160;(((((ch)&gt;='A')&amp;&amp;((ch)&lt;='Z'))||(((ch)&gt;='a')&amp;&amp;((ch)&lt;='b')))?true:false)</td></tr>
<tr class="separator:af84cf65fa3abd8d70b242252eb2f76b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacc3ee1a7f283f8ef65cea31f4436a95"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_base_type_8h.html#aacc3ee1a7f283f8ef65cea31f4436a95">MAX</a>(x, y)&#160;&#160;&#160;(((x)&gt;(y))?(x):(y))</td></tr>
<tr class="separator:aacc3ee1a7f283f8ef65cea31f4436a95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74e75242132eaabbc1c512488a135926"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_base_type_8h.html#a74e75242132eaabbc1c512488a135926">MIN</a>(x, y)&#160;&#160;&#160;(((x)&lt;(y))?(x):(y))</td></tr>
<tr class="separator:a74e75242132eaabbc1c512488a135926"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6147f3466ba046825bde1fdc6c07b5e1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_base_type_8h.html#a6147f3466ba046825bde1fdc6c07b5e1">CLIP</a>(min, x, max)&#160;&#160;&#160;(((x)&gt;(max))?(max):(((x)&lt;(min))?(min):(x)))</td></tr>
<tr class="separator:a6147f3466ba046825bde1fdc6c07b5e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a598a3330b3c21701223ee0ca14316eca"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_base_type_8h.html#a598a3330b3c21701223ee0ca14316eca">PI</a>&#160;&#160;&#160;(3.1415926)</td></tr>
<tr class="separator:a598a3330b3c21701223ee0ca14316eca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1cf70a99e21bc2032e8867c6cafbb43"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_base_type_8h.html#aa1cf70a99e21bc2032e8867c6cafbb43">SQUARE</a>(x)&#160;&#160;&#160;((x)*(x))</td></tr>
<tr class="separator:aa1cf70a99e21bc2032e8867c6cafbb43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab781b8a4ff8175f5e70c7902b922d601"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_base_type_8h.html#ab781b8a4ff8175f5e70c7902b922d601">R_AREA</a>(r)&#160;&#160;&#160;((<a class="el" href="_base_type_8h.html#a598a3330b3c21701223ee0ca14316eca">PI</a>)*(r)*(r))</td></tr>
<tr class="separator:ab781b8a4ff8175f5e70c7902b922d601"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a294f1ac3fb1bd546cba9cc71604c987f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_base_type_8h.html#a294f1ac3fb1bd546cba9cc71604c987f">BIT_GET</a>(value, bit)&#160;&#160;&#160;(!!((0x0001&lt;&lt;(bit))&amp;(value)))</td></tr>
<tr class="separator:a294f1ac3fb1bd546cba9cc71604c987f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab94522870cd3d40d76ae0a8778166017"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_base_type_8h.html#ab94522870cd3d40d76ae0a8778166017">BIT_SET</a>(value, bit)&#160;&#160;&#160;((0x0001&lt;&lt;(bit))|(value))</td></tr>
<tr class="separator:ab94522870cd3d40d76ae0a8778166017"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae8a28e1c109b954e3eed8812556a1e7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_base_type_8h.html#aae8a28e1c109b954e3eed8812556a1e7">BIT_CLR</a>(value, bit)&#160;&#160;&#160;((~(0x0001&lt;&lt;(bit)))&amp;(value))</td></tr>
<tr class="separator:aae8a28e1c109b954e3eed8812556a1e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
类型定义</h2></td></tr>
<tr class="memitem:a1a6408291ee3cfd0760a61ac64084154"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1a6408291ee3cfd0760a61ac64084154"></a>
typedef signed char&#160;</td><td class="memItemRight" valign="bottom"><b>sint8</b></td></tr>
<tr class="separator:a1a6408291ee3cfd0760a61ac64084154"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74df79fde3c518e55b29ce6360a9c76e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a74df79fde3c518e55b29ce6360a9c76e"></a>
typedef signed short&#160;</td><td class="memItemRight" valign="bottom"><b>sint16</b></td></tr>
<tr class="separator:a74df79fde3c518e55b29ce6360a9c76e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0573de65958b4fda3a0460ed417dafb8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0573de65958b4fda3a0460ed417dafb8"></a>
typedef signed int&#160;</td><td class="memItemRight" valign="bottom"><b>sint32</b></td></tr>
<tr class="separator:a0573de65958b4fda3a0460ed417dafb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad91d7e42d1c1abce1d9eeacd54cc0497"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad91d7e42d1c1abce1d9eeacd54cc0497"></a>
typedef signed long long&#160;</td><td class="memItemRight" valign="bottom"><b>sint64</b></td></tr>
<tr class="separator:ad91d7e42d1c1abce1d9eeacd54cc0497"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adde6aaee8457bee49c2a92621fe22b79"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adde6aaee8457bee49c2a92621fe22b79"></a>
typedef unsigned char&#160;</td><td class="memItemRight" valign="bottom"><b>uint8</b></td></tr>
<tr class="separator:adde6aaee8457bee49c2a92621fe22b79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05f6b0ae8f6a6e135b0e290c25fe0e4e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a05f6b0ae8f6a6e135b0e290c25fe0e4e"></a>
typedef unsigned short&#160;</td><td class="memItemRight" valign="bottom"><b>uint16</b></td></tr>
<tr class="separator:a05f6b0ae8f6a6e135b0e290c25fe0e4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1134b580f8da4de94ca6b1de4d37975e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1134b580f8da4de94ca6b1de4d37975e"></a>
typedef unsigned int&#160;</td><td class="memItemRight" valign="bottom"><b>uint32</b></td></tr>
<tr class="separator:a1134b580f8da4de94ca6b1de4d37975e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29940ae63ec06c9998bba873e25407ad"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a29940ae63ec06c9998bba873e25407ad"></a>
typedef unsigned long long&#160;</td><td class="memItemRight" valign="bottom"><b>uint64</b></td></tr>
<tr class="separator:a29940ae63ec06c9998bba873e25407ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
枚举</h2></td></tr>
<tr class="memitem:a1f5e1f3292787e832e3c05addae5b8c6"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_base_type_8h.html#a1f5e1f3292787e832e3c05addae5b8c6">APP_STATUS_E</a> { <a class="el" href="_base_type_8h.html#a1f5e1f3292787e832e3c05addae5b8c6a7e4a42e3b6dd63708c64cf3db6f69566">STATUS_OK</a> = 0, 
<a class="el" href="_base_type_8h.html#a1f5e1f3292787e832e3c05addae5b8c6a5bde228d9506a863d51ffbc868ff67f7">STATUS_ERROR</a> = -1, 
<a class="el" href="_base_type_8h.html#a1f5e1f3292787e832e3c05addae5b8c6a1d57e6000a93a7eb812752846715a58c">STATUS_TIMEOUT</a> = -2
 }</td></tr>
<tr class="separator:a1f5e1f3292787e832e3c05addae5b8c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a270452d3867a2b47dde8e2bffe896f02"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_base_type_8h.html#a270452d3867a2b47dde8e2bffe896f02">BASETYPE_E</a> { <br />
&#160;&#160;<b>BASETYPE_NONE</b> =0, 
<b>BASETYPE_INT</b>, 
<b>BASETYPE_DOUBLE</b>, 
<b>BASETYPE_STRING</b>, 
<br />
&#160;&#160;<b>BASETYPE_INTARRAY</b>, 
<b>BASETYPE_DOUBLEARRAY</b>, 
<b>BASETYPE_STRINGARRAY</b>, 
<b>BASETYPE_TUPLE</b>
<br />
 }</td></tr>
<tr class="separator:a270452d3867a2b47dde8e2bffe896f02"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a class="anchor" id="a70c57aae3eb654e205459b4362c8089a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ARRAY_SIZE</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">array</td><td>)</td>
          <td>&#160;&#160;&#160;(sizeof(array)/sizeof(array[0]))</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>计算数组大小(元素个数) <em>array</em>. </p>

</div>
</div>
<a class="anchor" id="aae8a28e1c109b954e3eed8812556a1e7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define BIT_CLR</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">value, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">bit&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;((~(0x0001&lt;&lt;(bit)))&amp;(value))</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>清除value的第bit位的值 </p>

</div>
</div>
<a class="anchor" id="a294f1ac3fb1bd546cba9cc71604c987f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define BIT_GET</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">value, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">bit&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;(!!((0x0001&lt;&lt;(bit))&amp;(value)))</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取value的第bit位的值 </p>

</div>
</div>
<a class="anchor" id="ab94522870cd3d40d76ae0a8778166017"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define BIT_SET</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">value, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">bit&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;((0x0001&lt;&lt;(bit))|(value))</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置value的第bit位的值 </p>

</div>
</div>
<a class="anchor" id="a6147f3466ba046825bde1fdc6c07b5e1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CLIP</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">min, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">max&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;(((x)&gt;(max))?(max):(((x)&lt;(min))?(min):(x)))</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>在 <em>min</em> 和 <em>max</em> 区间中取与 <em>x</em> 大小较接近的数值. </p>

</div>
</div>
<a class="anchor" id="af84cf65fa3abd8d70b242252eb2f76b9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IS_ALPHABET</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">ch</td><td>)</td>
          <td>&#160;&#160;&#160;(((((ch)&gt;='A')&amp;&amp;((ch)&lt;='Z'))||(((ch)&gt;='a')&amp;&amp;((ch)&lt;='b')))?true:false)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>判断一个字符是否是字母 <em>ch</em>. </p>

</div>
</div>
<a class="anchor" id="aef7ed709c11221c220a4637d8ed946e3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IS_CAPITAL</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">ch</td><td>)</td>
          <td>&#160;&#160;&#160;((((ch)&gt;='A')&amp;&amp;((ch)&lt;='Z'))?true:false)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>判断一个字符是否是大写字母 <em>ch</em>. </p>

</div>
</div>
<a class="anchor" id="a76e74e5534d139b2b72763f7230abdbc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IS_DIGITAL</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">ch</td><td>)</td>
          <td>&#160;&#160;&#160;((((ch)&gt;='0')&amp;&amp;((ch)&lt;='9'))?true:false)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>判断一个字符是否是十进制数字 <em>ch</em>. </p>

</div>
</div>
<a class="anchor" id="a6dac81d72cfe90b7da010b9becf62606"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IS_HEXDIG</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">ch</td><td>)</td>
          <td>&#160;&#160;&#160;(((((ch)&gt;='0')&amp;&amp;((ch)&lt;='9'))||(((ch)&gt;='A')&amp;&amp;((ch)&lt;='F'))||(((ch)&gt;='a')&amp;&amp;((ch)&lt;='f')))?true:false)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>判断一个字符是否是16进制数字 <em>ch</em>. </p>

</div>
</div>
<a class="anchor" id="aacc3ee1a7f283f8ef65cea31f4436a95"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MAX</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">y&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;(((x)&gt;(y))?(x):(y))</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>返回 <em>x</em> 和 <em>y</em> 中较大值. </p>

</div>
</div>
<a class="anchor" id="a74e75242132eaabbc1c512488a135926"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MIN</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">y&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;(((x)&lt;(y))?(x):(y))</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>返回 <em>x</em> 和 <em>y</em> 中较小值. </p>

</div>
</div>
<a class="anchor" id="a598a3330b3c21701223ee0ca14316eca"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PI&#160;&#160;&#160;(3.1415926)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>圆周率. </p>

</div>
</div>
<a class="anchor" id="ab781b8a4ff8175f5e70c7902b922d601"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define R_AREA</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">r</td><td>)</td>
          <td>&#160;&#160;&#160;((<a class="el" href="_base_type_8h.html#a598a3330b3c21701223ee0ca14316eca">PI</a>)*(r)*(r))</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>计算半径为<em>r</em> 的圆的面积. </p>

</div>
</div>
<a class="anchor" id="aa1cf70a99e21bc2032e8867c6cafbb43"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SQUARE</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td>&#160;&#160;&#160;((x)*(x))</td>
        </tr>
      </table>
</div><div class="memdoc">
<p><em>x</em> 的平方. </p>

</div>
</div>
<h2 class="groupheader">枚举类型说明</h2>
<a class="anchor" id="a1f5e1f3292787e832e3c05addae5b8c6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="_base_type_8h.html#a1f5e1f3292787e832e3c05addae5b8c6">APP_STATUS_E</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>定义函数返回值 </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a class="anchor" id="a1f5e1f3292787e832e3c05addae5b8c6a7e4a42e3b6dd63708c64cf3db6f69566"></a>STATUS_OK&#160;</td><td class="fielddoc">
<p>函数返回值:正常 </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a1f5e1f3292787e832e3c05addae5b8c6a5bde228d9506a863d51ffbc868ff67f7"></a>STATUS_ERROR&#160;</td><td class="fielddoc">
<p>函数返回值:出错 </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a1f5e1f3292787e832e3c05addae5b8c6a1d57e6000a93a7eb812752846715a58c"></a>STATUS_TIMEOUT&#160;</td><td class="fielddoc">
<p>函数返回超时 </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="a270452d3867a2b47dde8e2bffe896f02"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="_base_type_8h.html#a270452d3867a2b47dde8e2bffe896f02">BASETYPE_E</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>定义数据类型 </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2016年 七月 7日 星期四 19:49:37 , 为 embedme使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>
